<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
    <style>
        .bgcolor{
            background-color: aqua;
        }
    </style>
</head>

<body>
    <div id="app">
        <table width="600px" border="1">
            <tr>
             <th>id</th>
             <th>姓名</th>
             <th>性别</th>
             <th>成绩</th>
             <th>等级</th>
            </tr>
            <tr v-for="(item,index) in arr" :key="item.id" :class="item.score >=90 ? 'bgcolor' : ''">
                <td>{{item.id}}</td>
                <td>{{item.name}}</td>
                <td>{{item.sex}}</td>
                <td>{{item.score}}</td>
                <td v-if="item.score >=90 ">优秀</td>
                <td v-else-if="item.score>=60 && item.score<80">及格</td>
                <td v-else-if="item.score >=80 && item.score<90 ">良好</td>
                <td v-else>不及格</td>
            </tr>
         </table>
    </div>
    <script>
        new Vue({
            el: "#app",
            data: {
                arr: [
                    { id: 1, name: '自己', sex: '男', score: 98 },
                    { id: 2, name: '粉红', sex: '男', score: 88 },
                    { id: 3, name: '防腐剂', sex: '男', score: 50 },
                    { id: 4, name: '佛文化', sex: '男', score: 90 },
                    { id: 5, name: '哈哈', sex: '男', score: 70 },
                    { id: 6, name: '挂号费', sex: '男', score: 55 },
                ]
            }
        })
    </script>
</body>

</html>